home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Tutorial / Cookbook / 01a.hello.Ch6Ex2 / MyObject.m < prev    next >
Text File  |  1995-06-12  |  337b  |  25 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "MyObject.h"
  5. #import <appkit/Control.h>
  6. #import <strings.h>
  7.  
  8. @implementation MyObject
  9.  
  10. - setTextOutlet:anObject
  11. {
  12.     textOutlet = anObject;
  13.     return self;
  14. }
  15.  
  16. - buttonAction:sender
  17. {
  18.     strcat(myString, "hello, world\n");
  19.     [textOutlet setStringValue:myString];
  20.     return self;
  21. }
  22.  
  23.  
  24. @end
  25.